<template>
  <ul class="todo-main">
    <Item
      v-for="(todo, index) in todos"
      :key="todo.id"
      v-bind="todo"
      :index="index"
      :checkedtodos="checkedtodos"
      :deleteTodo="deleteTodo"
    />
  </ul>
</template>

<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  name: "Main",
});
</script>

<script setup lang="ts">
import Item from "./Item/index.vue";
import type { todosType } from "../../App.vue";
defineProps<{ todos: todosType; checkedtodos: Function; deleteTodo:Function }>();
</script>

<style scoped>
/*main*/
.todo-main {
  margin-left: 0px;
  border: 1px solid #ddd;
  border-radius: 2px;
  padding: 0px;
}
.todo-empty {
  height: 40px;
  line-height: 40px;
  border: 1px solid #ddd;
  border-radius: 2px;
  padding-left: 5px;
  margin-top: 10px;
}
</style>
